package dtos;

import java.util.List;

import org.hibernate.validator.constraints.NotEmpty;




public class HotelDTO {
	
	private int hotelID;
	private String arrivalPlace;

	private int classification;

	private int cost;

	private String name;

	private String streetName;

	private int streetNumber;
	private List<PersonalizedTPDTO> personalizedTps;
	
	private List<PredefinedTPDTO> predefinedTps;

		public HotelDTO() {
		}

		
		public String getDescription(){
			return this.name+", "+this.classification+" stars, "+this.cost+" euros per person per night";
		}
		
		public int getHotelID() {
			return this.hotelID;
		}

		public void setHotelID(int hotelID) {
			this.hotelID = hotelID;
		}

		public String getArrivalPlace() {
			return this.arrivalPlace;
		}

		public void setArrivalPlace(String arrivalPlace) {
			this.arrivalPlace = arrivalPlace;
		}

		public int getClassification() {
			return this.classification;
		}

		public void setClassification(int classification) {
			this.classification = classification;
		}

		public int getCost() {
			return this.cost;
		}

		public void setCost(int cost) {
			this.cost = cost;
		}

		public String getName() {
			return this.name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getStreetName() {
			return this.streetName;
		}

		public void setStreetName(String streetName) {
			this.streetName = streetName;
		}

		public int getStreetNumber() {
			return this.streetNumber;
		}

		public void setStreetNumber(int streetNumber) {
			this.streetNumber = streetNumber;
		}

		public List<PersonalizedTPDTO> getPersonalizedTps() {
			return this.personalizedTps;
		}

		public void setPersonalizedTps(List<PersonalizedTPDTO> personalizedTps) {
			this.personalizedTps = personalizedTps;
		}

		public PersonalizedTPDTO addPersonalizedTp(PersonalizedTPDTO personalizedTp) {
			getPersonalizedTps().add(personalizedTp);
			personalizedTp.setHotelBean(this);

			return personalizedTp;
		}

		public PersonalizedTPDTO removePersonalizedTp(PersonalizedTPDTO personalizedTp) {
			getPersonalizedTps().remove(personalizedTp);
			personalizedTp.setHotelBean(null);

			return personalizedTp;
		}

		public List<PredefinedTPDTO> getPredefinedTps() {
			return this.predefinedTps;
		}

		public void setPredefinedTps(List<PredefinedTPDTO> predefinedTps) {
			this.predefinedTps = predefinedTps;
		}

		public PredefinedTPDTO addPredefinedTp(PredefinedTPDTO predefinedTp) {
			getPredefinedTps().add(predefinedTp);
			predefinedTp.setHotelBean(this);

			return predefinedTp;
		}

		public PredefinedTPDTO removePredefinedTp(PredefinedTPDTO predefinedTp) {
			getPredefinedTps().remove(predefinedTp);
			predefinedTp.setHotelBean(null);

			return predefinedTp;
		}


}
